import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import  About from '../views/About.vue'
//头部引入home

Vue.use(VueRouter)

const routes = [
  {
    path: '/aa',
    name: 'Home',
    component: Home
  },
  {
    path: '/bb',
    name: 'About',

    // component: () => import( '../views/About.vue')  
      //懒加载
    component: About

  },{
    path:"/page",
    name:"page",
    component:()=>import("../views/Page.vue")
  }
]

const router = new VueRouter({
  routes
})

export default router
